package com.appwoo.txtws.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseExpandableListAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.Map;

public class NotifyAdapter extends BaseExpandableListAdapter
{
  private ArrayList<ArrayList<Map<String, String>>> childList;
  private Context context;
  private ArrayList<Map<String, String>> groupList;

  public NotifyAdapter(Context paramContext, ArrayList<ArrayList<Map<String, String>>> paramArrayList, ArrayList<Map<String, String>> paramArrayList1)
  {
    this.context = paramContext;
    this.childList = paramArrayList;
    this.groupList = paramArrayList1;
  }

  public Object getChild(int paramInt1, int paramInt2)
  {
    return ((ArrayList)this.childList.get(paramInt1)).get(paramInt2);
  }

  public long getChildId(int paramInt1, int paramInt2)
  {
    return paramInt2;
  }

  public View getChildView(int paramInt1, int paramInt2, boolean paramBoolean, View paramView, ViewGroup paramViewGroup)
  {
    TextView localTextView = new TextView(this.context);
    localTextView.setText("\t" + (String)((Map)((ArrayList)this.childList.get(paramInt1)).get(paramInt2)).get("message"));
    localTextView.setTextSize(15.0F);
    localTextView.setPadding(10, 10, 10, 10);
    return localTextView;
  }

  public int getChildrenCount(int paramInt)
  {
    return ((ArrayList)this.childList.get(paramInt)).size();
  }

  public Object getGroup(int paramInt)
  {
    return this.groupList.get(paramInt);
  }

  public int getGroupCount()
  {
    return this.groupList.size();
  }

  public long getGroupId(int paramInt)
  {
    return paramInt;
  }

  public View getGroupView(int paramInt, boolean paramBoolean, View paramView, ViewGroup paramViewGroup)
  {
    LinearLayout localLinearLayout = (LinearLayout)LayoutInflater.from(this.context).inflate(2130903141, null);
    localLinearLayout.setPadding(5, 15, 0, 15);
    TextView localTextView1 = (TextView)localLinearLayout.findViewById(2131493253);
    TextView localTextView2 = (TextView)localLinearLayout.findViewById(2131493254);
    ImageView localImageView = (ImageView)localLinearLayout.findViewById(2131493255);
    localTextView1.setText((CharSequence)((Map)this.groupList.get(paramInt)).get("title"));
    localTextView2.setText((CharSequence)((Map)this.groupList.get(paramInt)).get("time"));
    if (paramBoolean)
    {
      localImageView.setBackgroundResource(2130838084);
      return localLinearLayout;
    }
    localImageView.setBackgroundResource(2130837677);
    return localLinearLayout;
  }

  public boolean hasStableIds()
  {
    return true;
  }

  public boolean isChildSelectable(int paramInt1, int paramInt2)
  {
    return true;
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.adapter.NotifyAdapter
 * JD-Core Version:    0.6.2
 */